//
//  TcpManager.h
//  socketDemo
//
//  Created by 吳瀾洲 on 2020/8/7.
//  Copyright © 2020 kingboyrang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TcpConnector.h"

NS_ASSUME_NONNULL_BEGIN

@interface TcpClient : NSObject{
    TcpConnector *tcpConnector;
}

+ (TcpClient *)shareInstance;

//连接
- (void)connectToHost:(NSString *)host port:(uint16_t)port;
//断开
- (void)disconnect;

- (TcpConnector *)getConnector;

@end

NS_ASSUME_NONNULL_END
